﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsDevice")]
    public class MsDevice : BaseEntity
    {
        [Key]
        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid RegisterId { get; set; }

        [Column(TypeName = "varchar(512)")]
        public string USBKeyNO
        {
            get;
            set;
        }

        [Column(TypeName = "varchar(512)")]
        public string FaroNO
        {
            get; set;
        }

        [Column(TypeName = "varchar(512)")]
        public string SurfaceNO
        {
            get; set;
        }

        [Column(TypeName = "timestamp(0)")]
        public DateTime ProductDate
        {
            get; set;
        }

        [Column(TypeName = "timestamp(0)")]
        public DateTime SaleDate
        {
            get; set;
        }

        [Column(TypeName = "varchar(512)")]
        public string DeviceKey
        {
            get; set;
        }

        [Column(TypeName = "varchar(255)")]
        public string UserCode
        {
            get; set;
        }

        [Column(TypeName = "varchar(255)")]
        public string DeviceGuid
        {
            get; set;
        }

        [Column(TypeName = "varchar(255)")]
        public string USBKeyType
        {
            get; set;
        }
    }
}